package org.frvi.goldspring.web.wicket.page;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.frvi.goldspring.business.entity.Account;


/**
 * Created by IntelliJ IDEA.
 * User: Frank
 * Date: Oct 4, 2009
 * Time: 7:38:41 PM
 * To change this template use File | Settings | File Templates.
 */
public class JournalPage extends WebPage {

    public JournalPage(Long id) {
        super(new DataObjectModel<Account>(Account.class, id));
        Account account = (Account) this.getDefaultModelObject();
        add(new Label("name", account.getName()));
        add(new Label("id", Long.toString(account.getId())));
    }
}
